<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:variable name="user">
        <xsl:value-of select="//engine-info/user" />
    </xsl:variable>
    
<xsl:template match="/">
        <data>
            <executiondata>
		<owner>
			<xsl:value-of select="$user" />
		</owner>
	    </executiondata>
            
            <xsl:apply-templates />
        </data>
</xsl:template>

<xsl:template match="processdata">
    <processdata>
        <xsl:attribute name="target_place">
            <xsl:value-of select="@target_place"/>
        </xsl:attribute>
        <xsl:attribute name="place_id">
            <xsl:value-of select="@place_id"/>
        </xsl:attribute>
        <xsl:attribute name="name">
            <xsl:value-of select="@name"/>
        </xsl:attribute>
        <xsl:copy-of select="./*"/>
    </processdata>
</xsl:template>

<xsl:template match="metadata/*" />


</xsl:stylesheet>
